<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>按钮绑定JavaScript</title>
</head>
<body>
<h1>
    这是一个标题
</h1>

<button onclick="myFunction()">
    点我
</button>

<script>
    function myFunction() {
        document.write(Date());
    }
</script>

</body>
</html>